﻿@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;
@{
    Layout = "~/themes/bootstrap/Shared/_Layout.cshtml";
}
@model UcAsp.Net.Model.ArticelsViews
@{
    ViewBag.Title = Model.Title;
}

<h2>@Model.Title</h2>
@(new HtmlString(Model.ArticleContent))

<div class="container-fluid">
    <div class="span8">
        @{
            foreach (UcAsp.Net.Model.Subjects model in UcAsp.Net.BLL.SubjectsConfig.GetMessageSubjects(Model.CategorieID, Config.Theme(Request.UserAgent)))
            {
                    
            <div class="span6" style="float: left; margin: 0px; padding: 0px;">
                <div>@SubjectsConfig.GetMessageSubjects(model.SubjectId, Model.CategorieID, Config.Theme(Request.UserAgent)).SubjectName</div>
                @foreach (ArticelsViews art in ArticlesBLL.GetMessageSubject(model.SubjectId, Model.CategorieID, Config.Theme(Request.UserAgent)))
                {
                    <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                                     {@art.ID<text>.shtml</text>}
                                                     else
                                                     {@art.ShowPath<text>.shtml</text>}">
                        @(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 20))
                    </a>
                }
            </div>
            }
        }
    </div>
    <div class="span4">
        @(new HtmlString(AdvConfig.GetAdvPositions("AD4", Config.Theme(Request.UserAgent)).AdvHtml))
    </div>
</div>

